package org.opens.protobuf.test;

import com.google.protobuf.ByteString;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import org.opens.protobuf.MessageProto;

/**
 * 功能描述
 *
 * @author: zhangyuming
 */
public class MessageProtoNetworkAccessHandle extends SimpleChannelInboundHandler<MessageProto.NetworkAccess> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MessageProto.NetworkAccess msg) throws Exception {
        System.out.println("2消息是: " + msg + "结束");
    }

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {

    }

}
